<template>
	<view>
		<view class="information_cell h5_padding">
			<image class="left img1" mode="aspectFit" :src="item.smallImage"></image>
			<view class="cont">
				<view class="title">{{item.title}}</view>
				<view class="line_content">

					<view class="text">适应症： {{item.indications}}</view>

				</view>
			</view>
			<image class="left img2" mode="aspectFit" :src="item.smallImage"></image>
		</view>
		<view class="line"></view>
	</view>
</template>

<script>
	export default {
		name: "information-cell",
		props: {
			item: {
				type: Object,
				default: {},
				required: true,
			}
		},
		data() {
			return {

			};
		}
	}
</script>

<style lang="scss">
	.line{
		height: 2rpx;
		background-color: #F3F3F3;
		margin: 30rpx 0rpx;
	}
	.information_cell {
		margin-top: 20rpx;
		display: flex;
		justify-content: flex-start;

		.left {
			flex-grow: 0;
			flex-shrink: 0;
			margin-right: 20rpx;
			width: 278rpx;
			height: 176rpx;
			// background-color: #C0C0C0;
		}

		.img1 {
			display: block;
		}

		.img2 {
			display: none;
		}

		.cont {
			flex-grow: 1;
			display: flex;
			flex-direction: column;

			.title {

				font-size: 22rpx;
				font-family: PingFangSC-Medium, PingFang SC;
				font-weight: 500;
				color: #008796;
				line-height: 33rpx;
				letter-spacing: 1rpx;
			}

			.line_content {
				display: flex;

				justify-content: flex-start;

				.text {
					margin-top: 20rpx;
					font-size: 18rpx;

					font-family: PingFangSC-Regular, PingFang SC;
					font-weight: 400;
					color: #999999;
					line-height: 36rpx;
					letter-spacing: 1rpx;
				}


			}

			.line_buttom {
				margin-top: auto;
				display: flex;

				justify-content: flex-start;



				.logo {
					flex-shrink: 0;
					width: 36rpx;
					height: 36rpx;
					background-color: #C0C0C0;
					border-radius: 18rpx;
				}

				.text {
					// flex-shrink:0;
					font-size: 18rpx;

					font-family: PingFangSC-Regular, PingFang SC;
					font-weight: 400;
					color: #999999;
					line-height: 36rpx;
					letter-spacing: 1rpx;


				}

				.text1 {
					-webkit-transform: scale(0.8);
					margin-left: 10rpx;
				}

				.text2 {
					-webkit-transform: scale(0.8);
					margin-left: 40rpx;
				}
			}
		}
	}

	@media screen and (max-width:750px) {
		.information_cell {
			.img1 {
				display: none;
			}

			.img2 {
				display: block;
				margin-right: 0rpx !important;
				margin-left: 20rpx;

				width: 254rpx;
				height: 154rpx;


			}

			.cont {
				overflow: hidden;
				.title {
				
					font-size: 28rpx;
					font-family: PingFangSC-Regular, PingFang SC;
					font-weight: 400;
					color: #333333;
					line-height: 33rpx;
					letter-spacing: 1rpx;
				}
				

				.line_content {

					.text {
						margin-top: 20rpx;
						font-size: 20rpx;
						
						overflow: hidden;
						-webkit-line-clamp: 2;
						text-overflow: ellipsis;
						display: -webkit-box;
						-webkit-box-orient: vertical;
					}


				}
			}
		}

	}
</style>
